package br.com.sicoob.cedente.transacao;

import java.io.InputStream;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Vector;

public class PropriedadesTransacao extends Properties {

	private static final long serialVersionUID = 3679285039456307794L;

	private Vector<Object> v = new Vector<Object>();

	public Enumeration<Object> propertyNames() {
		return v.elements();
	}

	public synchronized Object put(Object key, Object value) {
		v.add(key);
		return super.put(key, value);
	}

	public void load(String nome) throws Exception {
		InputStream in = ResourceLoader.getFormatoAsStream(nome);
		super.load(in);
		in.close();
	}

}
